package com.oceansoft.core.jxkh.service.impl;

import com.oceansoft.core.common.util.Pagination;
import com.oceansoft.core.jxkh.dao.IKhlxDao;
import com.oceansoft.core.jxkh.domain.Khlx;
import com.oceansoft.core.jxkh.service.IKhlxService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/**
 * Created by OS on 2017/12/13.
 */

@Service
public class KhlxServiceImpl implements IKhlxService{

    @Resource
    private IKhlxDao khlxDao;

    @Override
    public Pagination findAllKhlx(HashMap<String, String> map) {
        return khlxDao.findAllKhlx(map);
    }

    @Override
    public void editKhlxInfo(Khlx khlx) {
        khlxDao.editKhlxInfo(khlx);
    }

    @Override
    public Khlx findKhlxInfoByDbid(int dbid) {
        return khlxDao.findKhlxInfoByDbid(dbid);
    }

    @Override
    public void deleteKhlxInfoByDbid(int dbid) {
        khlxDao.deleteKhlxInfoByDbid(dbid);
    }

    @Override
    public void addKhlxInfo(Khlx khlx) {
        khlxDao.addKhlxInfo(khlx);
    }

    @Override
    public void batchDeleteKhlxInfo(int[] dbids) {
        khlxDao.batchDeleteKhlxInfo(dbids);
    }

    @Override
    public List findAllKhlxName() {
        return khlxDao.findAllKhlxName();
    }

    @Override
    public List findKhlxNameByItemaId(int itemaId) {
        return khlxDao.findKhlxNameByItemaId(itemaId);
    }
}
